import base from './baseapi'
import wepy from 'wepy';
import Tips from '../utils/Tips';


/**
 * 会员卡地址，主页API接口数据
 */

 export default class cardapi extends base {
     // 会员卡列表
     static async GetMemberAddress(params) {
         let res = await this.get('vshop', 'Member/GetCardList', params);
         return res;
     }

     //详情
     static async FindLevelCardById(params) {
        let res = await this.get('vshop', 'Member/FindLevelCardById', params);
        return res;
    }

    //默认
    static async SetDefaultCard(params) {
        let res = await this.postForm('vshop', 'Member/SetDefaultCard', params);
        return res;
    }

    // 获取会员拥有的优惠券列表
    static async GetCouponsListWithPage(params) {
        let res = await this.get('vshop', 'Member/GetCouponsListWithPage', params);
        return res;
    }

    // 获取积分明细
    static async GetPointRecord(params) {
        let res = await this.get('vshop', 'Member/GetPointRecord', params);
        return res;
    }

    //获取会员优惠券详情
    static async GetMemberCouponById(params) {
        let res = await this.get('vshop', 'Member/GetMemberCouponById', params);
        return res;
    }
 }